package com.example.administrator.himalaya.testPackage;

import com.example.administrator.himalaya.entity.recommendentity.RecommendEntity;
import com.example.administrator.himalaya.entity.recommendentity.RecommendEntityInterFace02;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by liuchao on 2016/12/4.
 */

public interface Myservice {
    //channel=and-a1  &device=android&  includeActivity=true&  includeSpecial=true  &scale=2&  version=4.3.98
    //推荐接口1
    @GET("v3/recommends")
    Call<RecommendEntity> getEntity(@Query("channel") String channel, @Query("device")
            String device, @Query("includeActivity") boolean includeActivity, @Query("includeSpecial")
                                        boolean includeSpecial
            , @Query("scale") int scale, @Query("version") String version);

    //推荐接口2
    //http://mobile.ximalaya.com/mobile/discovery/v1/recommend/hotAndGuess?device=android
    @GET("v1/recommend/hotAndGuess")
    Call<RecommendEntityInterFace02> getHotAndGuess(@Query("device") String device);
    //推荐接口3
    //http://adse.ximalaya.com/ting?device=android&name=find_banner&network=wifi&operator=0&version=4.3.98
}